<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    FlashGme
 */
?>
<?php
    $this->headLink()
        ->appendStylesheet($this->baseUrl() . '/application/modules/Flashgame/externals/styles/main.css');
?>
<div class="headline">
  <h2>
    <?php echo $this->translate('Games');?>
  </h2>
    <div class="tabs">
    <?php
      // Render the menu
      echo $this->navigation()
        ->menu()
        ->setContainer($this->navigation)
        ->render();
    ?>
    </div>
</div>
<div class='package_upgrade'>
    <h3><?php echo $this->translate('Upgrade Package');?></h3>

    <form action="games/payment" id='upgrade_form' method='POST'>
      <?php if( count($this->packages) ):?>
      <div class="note"><?php echo $this->translate(' Please subscribe to one of the packages below in order to receive play to the game.');?></div>
      <ul>
        <?php foreach ($this->packages as $package): ?>
            <li>
                <h4><input type="radio" value="<?php echo $package->package_id; ?>" name="signup_package" id="subscription_plan_<?php echo $package->package_id; ?>" /><?php echo $package->package_name; ?></h4>
                <div class="upgrade_package_info">
                    <?php echo $this->translate("Price (USD): "); echo $package->package_price . $this->translate(" per ") . $package->package_period . ' ' . $this->periodtypes[$package->package_periodtype]; ?>
                    <div class="description"><?php echo $package->package_description; ?> </div>
                </div>
            </li>
        <?php endforeach; ?>
      </ul>
    <?php endif; ?>
      <input type="hidden" id="task" name="task" value="upgrade"/>      
  <div id="submit-wrapper" class="form-wrapper">
      <div id="submit-label" class="form-label"> </div>
      <div id="submit-element" class="form-element">
            <button type="submit" id="upgradebtn" name="upgradebtn">
              <?php echo $this->translate('Upgrade'); ?>
            </button>
              <?php echo $this->translate('or');?>
           <?php echo $this->htmlLink(array('route' => 'flashgame_browse', 'action' => 'index'), $this->translate('cancel')) ?>
      </div>
  </div>

    </form>
</div>